package com.sun.domain;

import java.io.Serializable;

/**
 * @author SunRui
 * @description 图书表
 * @date 2024/7/4 20:20
 */
public class Book implements Serializable {
    private static final long serialVersionUID = -7868840253214599799L;
    private int id;//图书ID
    private String code;//图书编码，用于快速输入
    private String name;//图书名称
    private String authors;//图书作者名单
    private String press;//图书出版社名称
    private String imageUrl;//图书图片文件所在的路径
    private String description;//图书的详细介绍
    private String publishDate;//出版日期
    private float price;//图书价格
    private int satus;//状态
    private int categoryId;//所属的分类ID

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", authors='" + authors + '\'' +
                ", press='" + press + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                ", description='" + description + '\'' +
                ", publishDate='" + publishDate + '\'' +
                ", price=" + price +
                ", satus='" + satus + '\'' +
                ", categoryId=" + categoryId +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthors() {
        return authors;
    }

    public void setAuthors(String authors) {
        this.authors = authors;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(String publishDate) {
        this.publishDate = publishDate;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getSatus() {
        return satus;
    }

    public void setSatus(int satus) {
        this.satus = satus;
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }
}
